<extend name="Common@Layout:hui-admin" />
<block name="title"><title>Administator管理后台</title></block>
<block name="style">
</block>

<block name="main">
<div class="pd-20">
	<form action="{:u('edit_post')}" method="post" class="form form-horizontal validator_form close-dialog" id="form-article-add">
		<div id="tab-system" class="HuiTab">
			<div class="row cl">
				<label class="form-label col-2"><span class="c-red">*</span>标题：</label>
				<div class="formControls col-8">
					<input type="text" class="input-text" value="{$info.title}" placeholder="请输入文章标题" id="" name="title" data-rule="文章标题:required;">
				</div>
			</div>
			<div class="row cl">
				<label class="form-label col-2">内容：</label>
				<div class="formControls col-10">
					<textarea name="content" style="width:800px;height:450px;visibility:hidden;">{$info.content}</textarea>
				</div>
			</div>
		</div>
		<div class="row cl">
			<div class="col-10 col-offset-2">
				<input type="hidden" name="id" value="{$info.id}"/>
				<input type="hidden" name="type" value="course"/>
				<input type="hidden" name="cid" value="{$cid}"/>
				<input type="hidden" name="uid" value="{$uid}"/>
				<button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存并提交</button>
		
			</div>
		</div>
	</form>
</div>
</block>

<block name="script">
<css href="/Public/Sea/modules/kindeditor/src/default.css,/Public/Sea/modules/kindeditor/css/upload.css" />
<js href="/Public/Sea/modules/kindeditor/src/kindeditor-min.js,/Public/Sea/modules/kindeditor/src/lang/zh_CN.min.js" />
<script type="text/javascript">
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	
});

var config = {appid:'{$app['app_id']}',appkey:'{$app['app_key']}'};
var uploadurl = '/material/image/upload';

var editor1 = KindEditor.create('textarea[name="content"]',{
	uploadJson : uploadurl,
	allowFileManager : true,
	fileManagerJson : config.fileManagerJson,
	afterBlur: function(){this.sync();}
});


</script>
</block>